<template>
<div>
<el-row>
  <el-button>新闻动态</el-button>
  <el-button type="primary">关于游戏</el-button>
  <el-button type="success">排行榜</el-button>
  <el-button type="info">支持</el-button>
  <el-button type="warning">百科</el-button>
  <el-button type="danger">登录/注册</el-button>
</el-row>
<template>
  <el-carousel indicator-position="outside">
    <el-carousel-item v-for="item in imgArray" :key="item">
      <img :src="item.imgUr1" style="width: 100% ;height:inherit">
    </el-carousel-item>
  </el-carousel>
</template>
</div>    
</template>
<script>
export default{
    name:'dididi1',
    data(){
        return{
            student:{"name":"John Doe","age": 30,"isStudent": true,"city":"Guangzhou"},
            student2:[{"name":"123","age":20},{"name":"123","age":20},{"name":"123","age":20}],
            imgArray:[{"imgName":"1","imgUr1":require('../assets/img/1.jpeg')},{"imgName":"2","imgUr1":require('../assets/img/2.jpeg')},{"imgName":"3","imgUr1":require('../assets/img/3.jpeg')}]
        }
    }
}
</script>
<style>
.el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 800px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>